Skip to content

feat: wire biometric auth into login/settings and add socket reconnection#114

Open
oche2920 wants to merge 2 commits intorinafcode:mainfrom
oche2920:feat/biometric-auth-socket-reconnection
Open

feat: wire biometric auth into login/settings and add socket reconnection#114
oche2920 wants to merge 2 commits intorinafcode:mainfrom
oche2920:feat/biometric-auth-socket-reconnection

Conversation

@oche2920
Copy link
Copy Markdown

Closes #82
Closes #85

Summary

Changes

Biometric Auth (#82)

  • Added biometric toggle row to MobileSettings Account section — only renders when device hardware supports it
  • useBiometricAuth hook drives enable/disable; enabling triggers native biometric confirmation prompt before persisting
  • app/settings.tsx now renders the full MobileSettings component (was a bare dark-mode stub)
  • Launch biometric prompt and login flow were already wired in MobileLogin — auto-triggers 600ms after mount when enabled

Socket Reconnection (#85)

  • Enabled reconnection: true with 10 max attempts, 1s initial delay, 30s cap, 0.5 jitter factor
  • Added reconnect_attempt, reconnect, reconnect_error, reconnect_failed event listeners with structured logging
  • Handles io server disconnect (server-forced) by manually calling connect() since socket.io skips auto-reconnect in that case
  • Added isConnected getter for consumers to check live connection state

…tion

- Add biometric toggle to MobileSettings (Account section)
- useBiometricAuth hook drives enable/disable with native confirmation prompt
- app/settings.tsx now renders full MobileSettings component
- Biometric prompt auto-triggers on launch when enabled (already in MobileLogin)
- Socket service: enable auto-reconnection with 10 attempts, 1s–30s exponential backoff and jitter
- Handle io server disconnect by manually calling connect()
- Add reconnect_attempt, reconnect, reconnect_error, reconnect_failed listeners

Closes rinafcode#82
Closes rinafcode#85
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 25, 2026

@oche2920 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

- Add notification_created event handler for real-time notifications
- Add course_updated event handler for course data updates
- Add message_received event handler for chat messages
- Implement proper logging for all socket events
- Resolves missing event listeners issue

Closes rinafcode#86
@RUKAYAT-CODER
Copy link
Copy Markdown
Contributor

Kindly resolve conflict
support our project with a star

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Socket No Automatic Reconnection Biometric Auth Not Integrated

2 participants